import java.awt.*;

public class FrameEx2 extends Frame
{
    Button bok = new Button("按键");

    FrameEx2()
    {
        this.setTitle("first window");
        this.add(bok);
        this.setBackground(Color.red);
        this.setResizable(false);
        this.setAlwaysOnTop(true);
         this.setBounds(100,100,250,250);
        this.setVisible(true);
        }
    public static void main(String[] args)
    {
        //System.out.println("Hello World!");
        new FrameEx2();
    }
}
